<?php
session_start();
$path = 'framework/';
require_once ($path.'util.php');
require_once ($path.'class.util.php');
require_once ($path.'class.db.php');
require_once ($path.'class.route.php');
require_once ($path.'class.controller.php');
require_once ($path.'class.response.php');
require_once ($path.'class.page.php');
require_once ($path.'class.auth.php');
require_once ($path.'class.lang.php');

if ($handle = opendir('app')) {
	while (false !== ($entry = readdir($handle))) {
		if (startsWith($entry, 'class.') && endsWith($entry, '.php')) {
			require_once ('app/'.$entry);
		}
	}
	closedir($handle);
}
?>